package com.zxtech.zzm.zxmonitorsu.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.zxtech.zzm.zxmonitorsu.MainActivity

class MyBootCompleteReceiver : BroadcastReceiver() {
  override fun onReceive(context: Context?, intent: Intent?) {
    Log.e("zzm debug", "MyBootCompleteReceiver onReceive")
    if (intent!!.action == "android.intent.action.BOOT_COMPLETED") {
      MainActivity.start(context!!)
    }
  }
}